package com.ydzh.kfqgwvisitor.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ydzh.kfqgwvisitor.entity.BeDepartment;
import com.ydzh.kfqgwvisitor.mapper.BeDepartmentMapper;
import com.ydzh.kfqgwvisitor.service.BeDepartmentService;
import com.ydzh.kfqgwvisitor.vo.BeDepartmentVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 被访人部门信息表  服务实现类
 * </p>
 *
 * @author zcj
 * @since 2021-09-01
 */
@Service
public class BeDepartmentServiceImpl extends ServiceImpl<BeDepartmentMapper, BeDepartment> implements BeDepartmentService {

    @Autowired
    private BeDepartmentMapper mapper;

    @Override
    public List<BeDepartmentVO> findByUnitId(Integer unitId) {
        return mapper.findByUnitId(unitId);
    }
}
